package com.tengju.bff.interfaces.manage.member.article.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "ArticleVO", description = "新增文章请求参数")
public class EditArticleForm {

    @ApiModelProperty(value = "文章ID")
    @NotNull(message = "文章id不能为空")
    private Long articleId;

    @ApiModelProperty(value = "标题")
    @NotNull(message = "标题不能为空")
    private String title;

    @ApiModelProperty(value = "类型")
    @NotNull(message = "类型不能为空")
    private Integer type;

    @ApiModelProperty(value = "内容")
    @NotNull(message = "内容不能为空")
    private String context;

}
